package cn.mapper;

import cn.dto.Query;
import cn.entity.Paper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PaperMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Paper record);

    int insertSelective(Paper record);

    Paper selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Paper record);

    int updateByPrimaryKey(Paper record);

    List<Paper> selectPaperListByYear(Query query);

    List<Paper> selectPaperPage(Query query);

    int totalNum();

    List<Integer> getPublicationsYearList();
}